<template>
    <a-form-item label="日期类型选择">
        <a-select v-model:value="props.curWidget.value!.options.picker">
            <a-select-option value="date">date</a-select-option>
            <a-select-option value="week">week</a-select-option>
            <a-select-option value="month">month</a-select-option>
            <a-select-option value="year">year</a-select-option>
        </a-select>
    </a-form-item>
</template>

<script setup lang="ts" name="picker-editor">
import type { BaseWidgetType, DesignerType } from '@/xyFDesigner/type';
import type { Ref } from 'vue';

defineOptions({
    name:"picker-editor"
})

const props = withDefaults(defineProps<{
    designer:DesignerType,
    curWidget:Ref<BaseWidgetType | null>
}>(),{})

</script>